//引入文件
var SearchStore = require('../stores/search.jsx');
var RenderMethod = require('../mixins/rendermethod.jsx');

//定义搜索组件
module.exports = React.createClass({
    //3 绑定消息
    mixins:[Reflux.connect(SearchStore,'data'),RenderMethod],
    //初始化状态
    getInitialState:function () {
        return{
            data: []
        }
    },
    render:function () {
        return(
            <section className="page">
                <div className="container">
                    <ul>{this.createList()}</ul>
                </div>
            </section>
        )
    }
})